#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
    int a = 0;
    while (scanf("%d", &a) != EOF)
    {
        if (a <= 3)
        {
            printf("Good");
        }
        else if (a <= 9)
        {
            printf("Danger");
        }
        else
        {
            printf("Danger++");
        }
    }
    return 0;
}